using QFramework;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

namespace ProjectSurvivor
{
	public class TestUIGamePassPanelData : UIPanelData
	{
	}
	public partial class TestUIGamePassPanel : UIPanel
	{
		protected override void OnInit(IUIData uiData = null)
		{
			mData = uiData as TestUIGamePassPanelData ?? new TestUIGamePassPanelData();
			// please add init code here
			Time.timeScale = 0;
            AudioKit.PlaySound("Gamepass");
			BtnBackToStart.onClick.AddListener(()=>
			{
				this.CloseSelf();
				SceneManager.LoadScene(1);
			});
        }
		
		protected override void OnOpen(IUIData uiData = null)
		{
		}
		
		protected override void OnShow()
		{
		}
		
		protected override void OnHide()
		{
           
        }
		
		protected override void OnClose()
		{
			 Time.timeScale = 1;
        }
	}
}
